package com.ruoyi.member.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知消息对象 message_send
 * 
 * @author zhaogang
 * @date 2024-07-21
 */
public class MessageSend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息主键 */
    private Long messageId;

    /** 项目主键 */
    @Excel(name = "项目主键")
    private Long projectId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    /** 发布消息时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布消息时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date messageDate;

    /** 发送人-用户主键 */
    @Excel(name = "发送人-用户主键")
    private Long userId;

    /** 发送人姓名*/
    private String userName;

    /** 发送人 */
    private String nickName;

    /** 是否阅读 1 未读 2 已读*/
    @Excel(name = "状态 1 未读 2 已读")
    private Integer messageState;

    /** 项目名 */
    private String projectName;

    public void setMessageId(Long messageId) 
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setMessageContent(String messageContent) 
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }
    public void setMessageDate(Date messageDate) 
    {
        this.messageDate = messageDate;
    }

    public Date getMessageDate() 
    {
        return messageDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getMessageState() {
        return messageState;
    }

    public void setMessageState(Integer messageState) {
        this.messageState = messageState;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("projectId", getProjectId())
            .append("messageContent", getMessageContent())
            .append("messageDate", getMessageDate())
            .append("userId", getUserId())
                .append("userName", getUserName())
                .append("messageState", getMessageState())
                .append("projectName", getProjectName())
                    .append("nickName", getNickName())
            .toString();
    }
}
